package com.ruoyi.wechat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.wechat.domain.WxMenu;
import me.chanjar.weixin.common.error.WxErrorException;

/**
 * @Author: yan
 * @Description: 自定义菜单
 * @Date: 2022-07-18
 */
public interface WxMenuService extends IService<WxMenu> {

    /***
     * 获取WxApp下的菜单
     * @return
     */
    String getWxMenuButton(String appid);

    /**
     * 保存并发布菜单
     * @param appId appid
     * @param strWxMenu 菜单
     */
    void saveAndRelease(String strWxMenu, String appId) throws WxErrorException;

}
